package com.recharge.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;


/**
 * <p>
 * 权利
 * </p>
 *
 * @author reagan
 * @since 2020-08-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_permission")
public class PermissionEntity implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 权利ID

     */
    private String permissionId;

    /**
     * 权利代码
     */
    private String code;

    /**
     * 权利名
     */
    private String name;

    /**
     * 1.菜单 2.按钮
     */
    private Integer type;

    /**
     * 请求地址
     */
    private String requestUrl;
    
    /**
     * 页面地址
     */
    private String component;

    /**
     * 图标
     */
    private String icon;

    private Date createDate;

    private Date modifiDate;

    private String creator;

    private String modifier;

    /**
     * -1 删除 1 有效\n            
     */
    private Integer isDelete;

    /**
     * 排序
     */
    private Integer sort;


}
